import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AlarmComponent } from "./alarm.component";
import { AlarmSearchComponent } from "./alarm-search/alarm-search.component";
import { WarnSearchComponent } from "./early-warn-search/warn-search.component";
import { EarlyWarnStatisticsComponent } from "./early-warn-statistics/early-warn-statistics.component";

const routes: Routes = [
  {
    path: "", component: AlarmComponent, children:
    [
      { path: "search", component: AlarmSearchComponent },
      { path: "warn", component: WarnSearchComponent },
      { path:"statistics",component:EarlyWarnStatisticsComponent}        
    ]
  },

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AlarmRoutingModule { }



// WEBPACK FOOTER //
// ./src/app/module/alarm/alarm-routing.module.ts